package net.zjitc.service.impl;

import net.zjitc.entity.Permission;
import net.zjitc.mapper.PermissionMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.zjitc.service.IPermissionService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @auther 郭梦婷
 * @create 2022-05-23 17:12:13
 * @describe 服务实现类
 */
@Service
@Transactional
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> selectList() {
        List<Permission> permissionList = permissionMapper.selectList(null);
        return permissionList;
    }
}
